package org.kevin.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.kevin.entity.SysLog;
import org.springframework.stereotype.Component;

/**
 * @ClassName: SysLogDao
 * @Description: TODO
 * @Author: kevinHan
 * @Date: 2019/8/27 22:52
 * @Version: 1.0
 */
@Mapper
@Component
public interface SysLogDao {

    @Insert("insert into sys_log(userName, operation, time, method, params, ip, create_time) " +
            "values (#{userName},#{operation},#{time},#{method},#{params},#{ip},#{createTime})")
    void saveSysLog(SysLog syslog);
}
